package com.xcity.pomelo.response;

import com.xcity.db.entity.GuildMember;
import com.xcity.db.entity.Player;
import com.xcity.pomelo.response.GuildMemberListResponse.GuildMemberSimpleInfo;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class AgreeApplyResponse extends Response {
	private int aid;
	private GuildMemberSimpleInfo newMember;
	public AgreeApplyResponse(int serial, int aid){
		super(serial);
		this.aid = aid;
	}
	public AgreeApplyResponse(int serial, GuildMember member, Player player, int aid) {
		super(serial);
		newMember = new GuildMemberSimpleInfo(member, player);
		this.aid = aid;
	}
	public GuildMemberSimpleInfo getNewMember() {
		return newMember;
	}
	public void setNewMember(GuildMemberSimpleInfo newMember) {
		this.newMember = newMember;
	}
	public int getAid() {
		return aid;
	}
	public void setAid(int aid) {
		this.aid = aid;
	}
}
